package com.chinaisafe.module.user.request;

import com.chinaisafe.base.common.validated.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * UserRoleReq
 * Description：
 *
 * @author tby
 * @date 2024/7/15 16:41
 */
@Data
@Schema(description = "角色授权参数")
public class UserRoleReqVO {

    @Schema(description = "角色id集合")
    @NotEmpty(message = "角色id集合不能为空", groups = {UpdateGroup.class})
    private List<Long> roleIds;
    @Schema(description = "用户id集合")
    @NotEmpty(message = "用户id不能为空", groups = {UpdateGroup.class})
    private List<Long> userIds;
}
